package com.ruoyi.project.seeDoctor.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.web.domain.BaseEntity;
import io.swagger.models.auth.In;

import java.util.Date;
import java.util.Objects;

public class MedReg extends BaseEntity {
    private String reg_id;
    private String pati_name;
    private String reg_depts;
    private String reg_docter;
    private Double reg_price;
    private Integer reg_num;
    private String reg_status;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date reg_sdate;
    private String reg_type;
    private String reg_time;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date reg_rdate;

    @Override
    public String toString() {
        return "MedReg{" +
                "reg_id='" + reg_id + '\'' +
                ", pati_name='" + pati_name + '\'' +
                ", reg_depts='" + reg_depts + '\'' +
                ", reg_docter='" + reg_docter + '\'' +
                ", reg_price=" + reg_price +
                ", reg_num=" + reg_num +
                ", reg_status='" + reg_status + '\'' +
                ", reg_sdate=" + reg_sdate +
                ", reg_type='" + reg_type + '\'' +
                ", reg_time='" + reg_time + '\'' +
                ", reg_rdate=" + reg_rdate +
                '}';
    }
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        MedReg medReg = (MedReg) o;
        return Objects.equals(reg_id, medReg.reg_id) &&
                Objects.equals(pati_name, medReg.pati_name) &&
                Objects.equals(reg_depts, medReg.reg_depts) &&
                Objects.equals(reg_docter, medReg.reg_docter) &&
                Objects.equals(reg_price, medReg.reg_price) &&
                Objects.equals(reg_num, medReg.reg_num) &&
                Objects.equals(reg_status, medReg.reg_status) &&
                Objects.equals(reg_sdate, medReg.reg_sdate) &&
                Objects.equals(reg_type, medReg.reg_type) &&
                Objects.equals(reg_time, medReg.reg_time) &&
                Objects.equals(reg_rdate, medReg.reg_rdate);
    }

    @Override
    public int hashCode() {
        return Objects.hash(reg_id, pati_name, reg_depts, reg_docter, reg_price, reg_num, reg_status, reg_sdate, reg_type, reg_time, reg_rdate);
    }

    public String getReg_id() {
        return reg_id;
    }

    public void setReg_id(String reg_id) {
        this.reg_id = reg_id;
    }

    public String getPati_name() {
        return pati_name;
    }

    public void setPati_name(String pati_name) {
        this.pati_name = pati_name;
    }

    public String getReg_depts() {
        return reg_depts;
    }

    public void setReg_depts(String reg_depts) {
        this.reg_depts = reg_depts;
    }

    public String getReg_docter() {
        return reg_docter;
    }

    public void setReg_docter(String reg_docter) {
        this.reg_docter = reg_docter;
    }

    public Double getReg_price() {
        return reg_price;
    }

    public void setReg_price(Double reg_price) {
        this.reg_price = reg_price;
    }

    public Integer getReg_num() {
        return reg_num;
    }

    public void setReg_num(Integer reg_num) {
        this.reg_num = reg_num;
    }

    public String getReg_status() {
        return reg_status;
    }

    public void setReg_status(String reg_status) {
        this.reg_status = reg_status;
    }

    public Date getReg_sdate() {
        return reg_sdate;
    }

    public void setReg_sdate(Date reg_sdate) {
        this.reg_sdate = reg_sdate;
    }

    public String getReg_type() {
        return reg_type;
    }

    public void setReg_type(String reg_type) {
        this.reg_type = reg_type;
    }

    public String getReg_time() {
        return reg_time;
    }

    public void setReg_time(String reg_time) {
        this.reg_time = reg_time;
    }

    public Date getReg_rdate() {
        return reg_rdate;
    }

    public void setReg_rdate(Date reg_rdate) {
        this.reg_rdate = reg_rdate;
    }

    public MedReg() {
    }

    public MedReg(String reg_id, String pati_name, String reg_depts, String reg_docter, Double reg_price, Integer reg_num, String reg_status, Date reg_sdate, String reg_type, String reg_time, Date reg_rdate) {
        this.reg_id = reg_id;
        this.pati_name = pati_name;
        this.reg_depts = reg_depts;
        this.reg_docter = reg_docter;
        this.reg_price = reg_price;
        this.reg_num = reg_num;
        this.reg_status = reg_status;
        this.reg_sdate = reg_sdate;
        this.reg_type = reg_type;
        this.reg_time = reg_time;
        this.reg_rdate = reg_rdate;
    }
}
